#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = nullptr);
    ~Widget();
protected slots:
    void onLogin();
    void onSent();
    void onShow();
    void onLogined();
protected:
    void closeEvent(QCloseEvent *event);
private:
    Ui::Widget *ui;
    QTcpSocket *client;
};

#endif // WIDGET_H
